/*
 * Copyright 2008 Carnegie Mellon University
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *  
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, 
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package edu.cmu.lti.sepia.infra.eval.model;

public class QAJudgmentResult {

  private QAJudgmentUnit unit;
  private int nuggetId;
  private int userId;
  private String judgment; // matched or not
  
  /**
   * @param judgmentId
   * @param userId
   * @param judgment
   * @param evidence
   */
  public QAJudgmentResult(int judgmentId, int nuggetId, int userId, String judgment) {
    this.unit = new QAJudgmentUnit(judgmentId, null, null, -1, 0D);
    this.nuggetId = nuggetId;
    this.userId = userId;
    this.judgment = judgment;
  }
  
  /**
   * @param judgmentId
   * @param userId
   * @param judgment
   * @param evidence
   */
  public QAJudgmentResult(QAJudgmentUnit unit, int nuggetId, int userId, String judgment, String evidence) {
    this.unit = unit;
    this.nuggetId = nuggetId;
    this.userId = userId;
    this.judgment = judgment;
  }
  
  /**
   * @return the judgmentId
   */
  public int getJudgmentId() {
    return unit.getJudgmentId();
  }
  /**
   * @param judgmentId the judgmentId to set
   */
  public void setJudgmentId(int judgmentId) {
    unit.setJudgmentId( judgmentId );
  }
  /**
   * @return the userId
   */
  public int getUserId() {
    return userId;
  }
  /**
   * @param userId the userId to set
   */
  public void setUserId(int userId) {
    this.userId = userId;
  }
  /**
   * @return the judgment
   */
  public String getJudgment() {
    return judgment;
  }
  /**
   * @param judgment the judgment to set
   */
  public void setJudgment(String judgment) {
    this.judgment = judgment;
  }
  /**
   * @return the evidence
   */
  public String getTopicId() {
    return unit.getTopicId();
  }
  /**
   * @return the evidence
   */
  public String getSystemResponse() {
    return unit.getSystemResponse();
  }

  /**
   * @return the nuggetId
   */
  public int getNuggetId() {
    return nuggetId;
  }

  /**
   * @param nuggetId the nuggetId to set
   */
  public void setNuggetId(int nuggetId) {
    this.nuggetId = nuggetId;
  }

  /**
   * @return the unit
   */
  public QAJudgmentUnit getUnit() {
    return unit;
  }

  /**
   * @param unit the unit to set
   */
  public void setUnit(QAJudgmentUnit unit) {
    this.unit = unit;
  }
 
  
}
